package entity

import "time"

// Dict Dict
type Dict struct {
	DictID    int64     `gorm:"primaryKey;column:dict_id;type:bigint;not null" json:"-"`
	BizType   int32     `gorm:"column:biz_type;type:int" json:"bizType"`
	DictName  string    `gorm:"column:dict_name;type:varchar(32)" json:"dictName"`
	DictValue string    `gorm:"column:dict_value;type:varchar(32)" json:"dictValue"`
	CreatedAt time.Time `gorm:"column:created_at;type:datetime" json:"createdAt"`
	UpdatedAt time.Time `gorm:"column:updated_at;type:datetime" json:"updatedAt"`
}

// TableName get sql table name.获取数据库表名
func (m *Dict) TableName() string {
	return "dict"
}
